const express = require('express');
const router = express.Router();
const {
list,
all,
detail,
add,
del,
update
} = require('../../controllers/<%= routerPath %>/<%= tableName %>Controller')

/**
* 查询<%= title %>分页列表
* GET /<%= routerPath %>/<%= tableName %>/list
*/
router.get('/list', list);

/**
* 查询<%= title %>所有列表
* GET /<%= routerPath %>/<%= tableName %>/all
*/
router.get('/all', all);

/**
* 查询<%= title %>详情
* GET /<%= routerPath %>/<%= tableName %>/detail
*/
router.get('/detail',detail);

/**
* 新增<%= title %>
* POST /<%= routerPath %>/<%= tableName %>/add
*/
router.post('/add',add);

/**
* 删除<%= title %>
* DELETE /<%= routerPath %>/<%= tableName %>/delete
*/
router.delete('/delete',del);

/**
* 更新<%= title %>
* PUT /<%= routerPath %>/<%= tableName %>/update
*/
router.put('/update',update);

module.exports = router;
